from django.conf.urls import url

from areas import views

urlpatterns = [
#
#     # url(路径, 视图)
#     url(r'^areas/$', views.AreasView.as_view()),
#     url(r'^areas/(?P<pk>\d+)/$', views.SubAreasView.as_view()),
#
#
]


from rest_framework.routers import DefaultRouter
route = DefaultRouter()
route.register('areas',views.AreaViewSet,base_name='areas')
urlpatterns += route.urls
